﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Slippor.Douban.Radio.BaseForm
{
    public partial class LoginForm : Form
    {
        public LoginForm()
        {
            InitializeComponent();
        }

        public void RefreshLanguage()
        {
            this.Text = StringResource.D_LoginForm;
            this.textBox2.Text = StringResource.D_textBox2;
            this.textBox1.Text = StringResource.D_textBox1;
            this.buttonCancel.Text = StringResource.D_buttonCancel;
            this.buttonTotal.Text = StringResource.D_buttonTotal;
            this.buttonNormal.Text = StringResource.D_buttonNormal;
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void buttonNormal_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void buttonTotal_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.Yes;
        }
    }
}
